import request from '../utils/index'
export default {
    list(page, size) {
        return request({
            url: `/userList/${page}/${size}`,
            method: 'get',
        })
    },
    add(addForm) {
        return request({
            url: `/mearge`,
            method: 'post',
            data: addForm,
        })
    },
    del(id) {
        return request({
            url: `/del/${id}`,
            method: 'delete'
        })
    },
    edit(id, editForm) {
        return request({
            url: `/edit/${id}`,
            method: 'put',
            data: editForm
        })
    }
}